Skip to content

Conversation

@BillCarsonFr
Copy link
Member

@BillCarsonFr BillCarsonFr commented Nov 27, 2025

See #3587

Looks like there was a merge problem? These changes have been lost #3351

I integrated it a bit differently and added the test.
We should get rid of MuteStates it is way too complex to understand, and since the refactoring it looks like part of what it is doing should be under the responsability of the Publisher/LocalMembership

* Used for video to stop camera when earpiece mode is on.
* @private
*/
private readonly forceMute$: Observable<boolean>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is also what we should use if we run have an error for any of the devices. Add the force mute flag and then render the button as in disabled state.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we have to check for these errors and when they occur. But maybe now it will just make the available map empty, that is already muting. What error are you thinking about?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error while muting/unmuting. But I think I mixed things up since if we use the lower level api mute unmute this will never throw.

@BillCarsonFr BillCarsonFr marked this pull request as draft November 27, 2025 16:02
this.handler$.next(defaultHandler);
}

private readonly devicesConnected$ = combineLatest([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I like this name. devicesConnected now is implied by force mute?
I would expect the other way around, that no connected device implies force muting.
But force mute = true -> no devices connected feels like it messes with causality.

* Used for video to stop camera when earpiece mode is on.
* @private
*/
private readonly forceMute$: Observable<boolean>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error while muting/unmuting. But I think I mixed things up since if we use the lower level api mute unmute this will never throw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-Bug-Fix Release note category. A PR that fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants